package cn.sdormitory.knowledgebase.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AppUserAnswerRecordVo {
   @ApiModelProperty(value="考试id")
   private Integer examId;

   @ApiModelProperty(value="总题数")
   private Integer totalQuestions;

   @ApiModelProperty(value="正确题数")
   private Integer correctQuestions;

   @ApiModelProperty(value="答错题数")
   private Integer errorQuestions;

   @ApiModelProperty(value="未答题数")
   private Integer notQuestions;

   @ApiModelProperty(value="是否达标(0:否 1:是)")
   private Boolean isPassed;

   @ApiModelProperty(value="创建时间")
   @JsonSerialize(using = LocalDateTimeSerializer.class)
   @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
   private LocalDateTime createTime;

   @ApiModelProperty(value="技能标题")
   private String skillTitle;

   @ApiModelProperty(value="技能批次")
   private Integer studyBatch;
}
